export default {
	data() {
		return {
			nickName: "点击登录",
			touxiang: "",
			loginStatus: this.Reques.isLogin,
			title: "",
			StatusBar: this.StatusBar,
			CustomBar: this.CustomBar,
			menuArrow: true,
			gridCol: 3,
			gridBorder: false,
			initCode: "",
			cuIconList: {
				order: [{
						cuIcon: 'pay',
						color: 'red',
						badge: 0,
						type: 1,
						showS: true,
						name: '待付款'

					}, {
						cuIcon: 'send',
						color: 'orange',
						badge: 0,
						type: 2,
						showS: true,
						name: '已完成'
					},
					{
						cuIcon: 'send',
						color: 'orange',
						badge: 0,
						type: 4,
						showS: true,
						name: '已取消'
					}
				],
				list: [
					{
						title: '历史',
						icon: 'footprint',
						color: "red",
						showS: true,
						hasDiscount: 0,
					    url: '/pages/view/history'
					},
				
					{
						title: '联系客服',
						icon: 'servicefill',
						color: "red",
						showS: true,
						hasDiscount: -1,
						url: '0'
					}
			

				]

			}

		}

	},
	methods:{
		changeTo(url, index) {
			this.cuIconList.list[index].showS = false;
			if (url != 0) {
				uni.navigateTo({
					url: url,
					animationType: 'slide-in-left'
				})
			} 
			else {
				uni.clearStorage();
				uni.showLoading({
					title: "正在清除缓存"
				})
				setTimeout(() => {
					uni.hideLoading();
					uni.redirectTo({
						url: '/pages/index/index',
						animationType: "slide-in-left"
					})
				}, 3000);
			}
		
		
		},
		
	}
	




}
